package com.shopping.nacos.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author jiaZhenpeng
 * @Title: MybatisPlusConfig
 * @Package com.shopping.nacos.config
 * @Description: MybaitsPlus配置类
 * @date 2022/7/2610:50
 */
@Configuration
public class MybatisPlusConfig {

    /**
     * Mybatis-plus分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
